<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;

class Category extends BaseModel
{
    use HasFactory;

    protected $guarded = [];

    // 收入
    const TYPE_IN = 10;
    // 支出
    const TYPE_OUT = 20;

    public function user()
    {
        return $this->hasOne(Member::class, 'id', 'user_id');
    }
}
